package com.itheima.dto;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.itheima.pojo.EmpExpr;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@NoArgsConstructor
@AllArgsConstructor
@Data
public class EmpExprDto {
        private Integer id;
        private String username;
        private String password;
        private String name;
        private Integer gender;
        private String phone;
        private Integer job;
        private Integer salary;
        private String image;
        private LocalDate entryDate;
        private Integer deptId;
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        private LocalDateTime createTime;
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        private LocalDateTime updateTime;
        private List<EmpExpr> exprList;

}
